<template>
    <div class="div">
        <div >
            <p>{{info.code}}</p>
            <p>{{info.createTime}}</p>
            <p>{{info.updateTime}}</p>
        </div>
    </div>
</template>

<script>
import {getDetailData} from "../../api/paper.js"
export default {
    data(){
        return {
            code:"1",
            info:{}
        }
    },
    methods:{
        async getDetail(){
            this.code = this.$route.query.code
            let detail = await getDetailData(this.code)
            console.log(detail,'detail')
            this.info = detail.result
        }
    },
    created(){
        this.getDetail()
    }
}
</script>

<style lang="scss" scoped>
.div{
    width: 100%;
    height: 100%;
    div{
        display: flex;
        p{
            margin-left: 20px;
        }
    }
}
</style>